import request from '@/utils/request'
import Vue from 'vue'
// 获取列表
export const queryList = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.index,
        method: 'post',
        data,
    })
}
// 获取列表
export const editOrderSource = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.edit,
        method: 'post',
        data,
    })
}
// 获取列表
export const getOperationLabelList = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.operationLabelList,
        method: 'post',
        data,
    })
}

// 获取列表
export const getChannelLabelList = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.channelLabelList,
        method: 'post',
        data,
    })
}
// 订单导出
export const exportOrder = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const querySalesPerformanceChannelList = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.salesPerformanceChannel,
        method: 'post',
        data,
    })
}
export const querySalesPerformanceSkuList = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.salesPerformanceSku,
        method: 'post',
        data,
    })
}
export const advertisingInquiry = data => {
    return request({
        url: Vue.prototype.$api.orderSourceWoobilly.advertisingInquiry,
        method: 'post',
        data,
    })
}
